#ifndef DOWNLOADDIALOG_H
#define DOWNLOADDIALOG_H

#include <QDialog>

namespace Ui
{
    class DownloadDialog;
}
namespace Jcr
{

class DownloadDialog : public QDialog
{
    Q_OBJECT
public:
    explicit DownloadDialog(QWidget* parent = nullptr);

    void setUrl(const QString& url);
    QString url() const;

    void setSaveDir(const QString& dir);
    QString saveDir() const;

    void setSaveName(const QString& saveName);
    QString saveName() const;

private slots:
    void onUrlChanged(const QString& url);

private:
    Ui::DownloadDialog* m_ui;
};

} // namespace jcr
#endif // DOWNLOADDIALOG_H
